package com.ruoyi.combat.util;

import cn.hutool.json.JSONUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class Funcction5Util {
    @Autowired
    private MethodUseUtils methodUseUtils;

    public String function1path;

    public String function1(String data){
        Map dataMap = new HashMap<>();
        dataMap.put("Attributes",data);
        Map<String, Object> stringObjectMap = methodUseUtils.methodUseLogs(33l, JSONUtil.toJsonStr(dataMap));
        return String.valueOf(stringObjectMap.get("ratio"));
    }

    public String function2(String data){
        return "";
    }



}
